package org.linlinjava.litemall.core.payment.clover.service;

import com.paypal.base.rest.PayPalRESTException;
import org.linlinjava.litemall.core.payment.clover.rs.ApiCustomerRS;

import java.io.IOException;
import java.util.List;

/**
 * @author ：stephen
 * @date ：Created in 2020/4/2 16:20
 * @description：TODO
 */
public interface CloverService {
    Object getPayment(Integer userId, Integer orderId, String successUrl, String cancelUrl);

    Object executePayment(String cardNumber,Integer userId,Integer orderId) throws IOException;
//    Object executePayment(Integer cardId,Integer orderId) throws IOException;

    boolean refund(Integer orderId)  throws IOException;

    List<ApiCustomerRS> getCustomerCards(String customerId) throws IOException;
}
